package be.redo.command;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

import be.redo.model.entities.Airport;
import be.redo.model.entities.Region;

public class FlightSearchForm implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5481707992254543521L;
	private List<Region> departureRegions;
	private List<Airport> departures;
	private List<Region> destinationRegions;
	private List<Airport> destinations;

	public List<Region> getDepartureRegions() {
		return Collections.unmodifiableList(departureRegions);
	}

	public void setDepartureRegions(List<Region> departureRegions) {
		this.departureRegions = departureRegions;
	}

	public List<Airport> getDepartures() {
		return Collections.unmodifiableList(departures);
	}

	public void setDepartures(List<Airport> departures) {
		// this.departures = new ArrayList<Airport>(departures.size());
		// Collections.copy(this.departures,departures);
		this.departures = departures;
	}

	public List<Region> getDestinationRegions() {
		return Collections.unmodifiableList(destinationRegions);
	}

	public void setDestinationRegions(List<Region> destinationRegions) {
		this.destinationRegions = destinationRegions;
	}

	public void setDestiantions(List<Airport> destinations) {
		this.destinations = destinations;
	}

	public List<Airport> getDestinations() {
		return Collections.unmodifiableList(destinations);
	}

}
